package com.zhongdone.pattern.structural.bridge.message.demo;

/**
 * 抽象消息类
 */
public abstract class AbstractMessage {

    IMessage iMessage;

    public AbstractMessage(IMessage iMessage){
        this.iMessage = iMessage;
    }

    public void sendMessage(String message, String toUser){
        this.iMessage.send(message,toUser);
    }

}
